package com;

import java.io.File;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Test {
	public static void main(String[] args) {
		//136446465 | 822149444
		//13697537 | 2092478830
		//System.out.println(String.format("%08X%08X", 328991233 , 200633538));
		
		String guid ="13E50201376ECB7C";
		System.out.println("xx");
		System.out.println(Integer.parseInt(guid.substring(0, 8), 16));
		System.out.println(Integer.parseInt(guid.substring(8, 16), 16));
		Integer obj =null;
		
//		String str = "http://10.128.36.237/upload/320141008142423.jpg".replaceFirst("^((http)|(https))://(\\w*[.])+\\w*[:]{0,1}\\d*/", "sss");
//		System.out.println(str);
		/*String str = "2018-10-02 00:00:18,834 INFO [EventDispatcherProcessor-thread-90] c.c.t.c.c.c.ChatProcessor [ChatProcessor.java:164] 用户:3044939-灬乛痴迷丨@千秋殿,在什么端:2,在房间:2200016824公开说了:去天外玩玩\r\n" + 
				"";
		String regex = "(?<=用户:)\\d*";
		Matcher m1= Pattern.compile(regex).matcher(str);
		m1.find();
		String group = m1.group(0);
		System.out.println(group);
		
		File file = new File("src/main/java/com/Test.java");
		System.out.println(file.getName());*/
		
		/*List<Integer> list = Arrays.asList(1, 2, 4,  3);
		Collections.sort(list, new Comparator<Integer>() {

			@Override
			public int compare(Integer o1, Integer o2) {
				
				return o2 - o1;
			}
		});
		System.out.println(Arrays.toString(list.toArray()));*/
		
	}
	
	@org.junit.Test
	public void ss() {
		try {
			System.out.println("1");
			return;
		} catch (Exception e) {
			System.out.println(e);
		} finally {
			System.out.println("2");
		}
	}
	
}
